﻿using System.Web.Security;

namespace Webbness.Mvc.Security
{
    static class EncryptionHelper
    {
        public static string EncryptPassword(string pwd)
        {
            var provider = (IEncryptionProvider)Membership.Provider;
            return provider.EncodePassword(pwd);
        }

        public static string DecryptPassword(string pwd)
        {
            var provider = (IEncryptionProvider)Membership.Provider;
            return provider.UnEncodePassword(pwd);
        }
    }
}
